package cn.edu.nuc.crm.entity;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Product implements Serializable{
	
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Integer productid;

	private Integer accountid;

	private String productname;

	private Float productprice;

	private Integer productnum;

	private String productgo;

	private String productdown;
	
	
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date producttimego;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date producttimedown;
	
	private Integer productstate;

	public Integer getProductid() {
		return productid;
	}

	public void setProductid(Integer productid) {
		this.productid = productid;
	}

	public Integer getAccountid() {
		return accountid;
	}

	public void setAccountid(Integer accountid) {
		this.accountid = accountid;
	}

	public String getProductname() {
		return productname;
	}

	public void setProductname(String productname) {
		this.productname = productname == null ? null : productname.trim();
	}

	public Float getProductprice() {
		return productprice;
	}

	public void setProductprice(Float productprice) {
		this.productprice = productprice;
	}

	public Integer getProductnum() {
		return productnum;
	}

	public void setProductnum(Integer productnum) {
		this.productnum = productnum;
	}

	public String getProductgo() {
		return productgo;
	}

	public void setProductgo(String productgo) {
		this.productgo = productgo == null ? null : productgo.trim();
	}

	public String getProductdown() {
		return productdown;
	}

	public void setProductdown(String productdown) {
		this.productdown = productdown == null ? null : productdown.trim();
	}

	public Date getProducttimego() {
		return producttimego;
	}

	public void setProducttimego(Date producttimego) {
		this.producttimego = producttimego;
	}

	public Date getProducttimedown() {
		return producttimedown;
	}

	public void setProducttimedown(Date producttimedown) {
		this.producttimedown = producttimedown;
	}

	public Integer getProductstate() {
		return productstate;
	}

	public void setProductstate(Integer productstate) {
		this.productstate = productstate;
	}
	
	
}